package com.baishancloud.log

import java.io.Serializable
import scala.beans.BeanProperty


class CalculateMiguICTAudit extends Serializable


case class MiguICTAuditLogKey(timeAt: String, domain: String) extends Serializable

case class MiguICTAuditLogValue(line: Long, traffic: Long) extends Serializable

case class MiguICTAuditLog(timeAt: String, domain: String, line: Long, traffic: Long) extends Serializable {
  def getKey: MiguICTAuditLogKey = {
    MiguICTAuditLogKey(timeAt, domain)
  }

  def getValue: MiguICTAuditLogValue = {
    MiguICTAuditLogValue(line, traffic)
  }
}

object MiguICTAuditLog extends Serializable {
  def apply(key: MiguICTAuditLogKey, value: MiguICTAuditLogValue): MiguICTAuditLog = {
    MiguICTAuditLog(key.timeAt, key.domain, value.line, value.traffic)
  }
}


case class MiguICTAuditResult(@BeanProperty time_at: String, @BeanProperty domain_id: Int, @BeanProperty line: Long, @BeanProperty traffic: Long)